package com.example.lifecycle.utils;


import android.content.Context;
import android.widget.Toast;

import javax.inject.Inject;

public class ToastUtils {

    private Context mContext;
    private Toast mToast;

    @Inject
    public ToastUtils(Context context) {
        this.mContext = context;
        mToast = Toast.makeText(mContext, "", Toast.LENGTH_LONG);
    }

    public void showToast(String message) {
        mToast.setText(message);
        mToast.show();
    }

}
